import type { Content } from "@/types/content";
import { request } from "@/utils/request";

// 查询所有列表
export const getContentById = (id: number) => request<Content>(`/content/getById?id=${id}`);

// 编辑/新增
export const save = (content: Content) => request("/content/save", "POST", content);
